<template>
    <div style="position: fixed; top: 0; left: 0; z-index: 3000; width: 100%">
        <el-menu
                class="index-menu-bar"
                :default-active="activeIndex2"
                mode="horizontal"
                @select="handleSelect"
                background-color="#FBFBFB"
                text-color="#4A4A4A"
                active-text-color="#00a2e9 ">
            <el-menu-item index="0" style="width: 20%;">
                <el-image :src="logo" fit="contain" style="width: 120px; height: 70px;"></el-image>
            </el-menu-item>
            <el-menu-item index="1" style="padding-left: 0">公司简介</el-menu-item>
            <el-menu-item index="2">产品介绍</el-menu-item>
            <el-menu-item index="3">服务中心</el-menu-item>
            <el-menu-item index="4">新闻资讯</el-menu-item>
            <el-menu-item index="4">关于我们</el-menu-item>
        </el-menu>
    </div>
</template>

<script>
    export default {
        name: "MenuBar",
        data() {
            return {
                logo: require("assets/img/lightCloud.png"),
                activeIndex2: '1'
            };
        },
        methods: {
            handleSelect(key, keyPath) {
                console.log(key, keyPath);
            }
        }
    }
</script>

<style lang="less" scoped>
    /* 菜单栏 */
    .index-menu-bar{
        border: none !important;
        height: 80px;
        padding-bottom: 5px;
        :first-child {
            text-align: right;
            padding-right: 0;
            cursor: default !important;
        }
        li{
            margin-left: 2vw;
            background-color: #FBFBFB !important;
            border-bottom: none !important;
            line-height: 80px;
        }
        li:hover{
            color: #00a2e9 !important;
        }
    }

</style>
